package com.gitee.zhanyao.cloud.security.service.impl;

import com.gitee.zhanyao.cloud.security.entity.system.SysUserAccount;
import com.gitee.zhanyao.cloud.security.repository.SysUserAccountRepository;
import com.gitee.zhanyao.cloud.security.service.SysUserAccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.transaction.Transactional;

@Transactional
@Service
public class SysUserAccountServiceImpl implements SysUserAccountService {

    @Autowired
    private SysUserAccountRepository sysUserAccountRepository;

    @Override
    public SysUserAccount findByLoginName(String loginName) {
        return sysUserAccountRepository.findByLoginName(loginName);
    }
}
